Linux Journal September 2011 by Linux Journal

Linux Journal September 2011 by Linux Journal

Author:Linux Journal
Language: eng
Format: mobi, epub
Tags: jQuery, WaveMaker, Moose, GNU Awk, Gauger, Qt4 Designer, Make Utility, Perl, jEdit, Linux
Publisher: Belltown Media
Published: 2011-09-30T07:00:00+00:00


* * *

Listing 2. The GAUGER macro makes it easy to integrate Gauger with C code. Note that the code does not need to be linked against any additional libraries (other than libc).

#include <gauger.h>

#include <time.h>

int main() {

time_t start = time (NULL);

do_test ();

time_t delay = time (NULL) - start;

GAUGER (“subsystem”, “execution time for f”,

delay, “s”);

return 0;

}

* * *

Listing 3. A simple static method call, leading to a single line of Java code, can be used to invoke Gauger from Java.

import static org.gnunet.gauger.Gauger.gauger;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.